package ru.amse.tsyganov.jumleditor.model;

import java.util.HashSet;
import java.util.Set;


public class StateVertex<T, S> {
	private final Set<T> outgoing = 
		new HashSet<T>();
	
	private final Set<T> incoming = 
		new HashSet<T>();
	
	private final S container;
	
	public StateVertex(S container) {
		if (container == null) {
			throw new IllegalArgumentException();
		}
		this.container = container;
	}
	
	
	public Set<T> getOutgoing() {
		return outgoing;
	}


	public Set<T> getIncoming() {
		return incoming;
	}


	public S getContainer() {
		return container;
	}
}
